package com.ruoyi.event.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 谈话记录业务对象 event_th
 *
 * @author strongme
 * @date 2023-02-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EventThBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private Long thId;

    /**
     * 吸毒人员id
     */
    @NotNull(message = "吸毒人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 谈话人员id
     */
    @NotNull(message = "谈话人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long memberId;

    /**
     * 谈话类型
     */
    @NotBlank(message = "谈话类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String thlx;

    /**
     * 谈话日期
     */
    @NotNull(message = "谈话日期不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date thrq;

    /**
     * 谈话地址
     */
    @NotBlank(message = "谈话地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String thdz;

    /**
     * 谈话概要
     */
    @NotBlank(message = "谈话概要不能为空", groups = {AddGroup.class, EditGroup.class})
    private String thgy;

    /**
     * 谈话内容
     */
    @NotBlank(message = "谈话内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String thnr;

    /**
     * 现场照片或谈话内容（记录截图）
     */
    private String img;

    /**
     * 附件
     */
    private String fj;

    /**
     * 参与人
     */
    private String cyr;

    /**
     * 备注
     */
    private String remark;


}
